import Layout from '@/layout'

/**
 * 管理员菜单路由
 */
const administratorRoutes = [

  {
    path: '/groupSetting',
    name: 'groupSetting',
    meta: {
      title: '组织配置',
      icon: 'dashboard'
    },
    component: Layout,
    children: [
      {
        path: '/groupSetting/index',
        component: () => import('@/views/administrator/group-setting/index'),
        name: 'groupSetting index',
        meta: {
          title: '组织管理',
          icon: 'dashboard'
        }
      },
      {
        path: '/groupSetting/create',
        component: () => import('@/views/administrator/group-setting/create'),
        name: 'groupSetting create',
        meta: {
          title: '添加新组织',
          icon: 'dashboard'
        }
      }
    ]
  },
  {
    path: '/userSetting',
    name: 'userSetting',
    meta: {
      title: '用户配置',
      icon: 'dashboard'
    },
    component: Layout,
    children: [{
      path: '/userSetting/index',
      component: () => import('@/views/administrator/user-setting/index'),
      name: 'userSetting index',
      meta: {
        title: '用户管理',
        icon: 'user'
      }
    }]
  },
  {
    path: '/menuSetting',
    name: 'menuSetting',
    meta: {
      title: '菜单配置',
      icon: 'dashboard'
    },
    component: Layout,
    children: [{
      path: '/menuSetting/index',
      component: () => import('@/views/administrator/menu-setting/index'),
      name: 'menuSetting index',
      meta: {
        title: '菜单管理',
        icon: 'user'
      }
    },
    {
      path: '/menuSetting/groupMenu',
      component: () => import('@/views/administrator/menu-setting/groupMenu'),
      name: 'menuSetting groupMenu',
      meta: {
        title: '组织菜单',
        icon: 'user'
      }
    }
    ]
  }

]

export default administratorRoutes
